package Evaluation;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import java.util.ResourceBundle;

public class SysConfig {
	
	private static SysConfig instance;
	
	private Properties pro;
	
	
	public static SysConfig getInstance()
	{
		if(instance == null)
		{
			instance = new SysConfig();
			
		}
			return instance;
	}
	
	private SysConfig()
	{
		BufferedInputStream inBuff = null;
		try {
			inBuff = new BufferedInputStream(new FileInputStream("./src/Evaluation/SysConfig.properties"));
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		pro = new Properties();
		try {
			pro.load(inBuff);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	public String getStringValue(String key)
	{
		return pro.getProperty(key);
	}

	
	public boolean containProperty(String key)
	{
		return pro.containsKey(key);
	}
}
